package com.xxg.jdeploy.mapper;

import java.util.List;

import com.xxg.jdeploy.domain.HostInfo;
import com.xxg.jdeploy.domain.JavaDeployInfo;
import com.xxg.jdeploy.domain.JavaWebDeployInfo;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface HostInfoMapper {

	@Select("select plat,hostip,username,password from java_host")
	List<HostInfo> getList();

	@Select("select plat,hostip,username,password from java_host where plat=#{plat}")
	HostInfo getDetail(int plat);

	@Insert("insert into java_host (plat,hostip,username,password) values (#{plat},#{hostip},#{username},#{password})")
	void insert(HostInfo javaDeployInfo);
	
	@Select("delete from java_host where plat=#{plat}")
	void delete(int plat);

}